/*
 * @Author: 王欣磊
 * @Date: 2024-07-22 10:35:57
 * @LastEditors: 王欣磊
 * @LastEditTime: 2024-09-24 17:17:22
 * @Description:
 * @FilePath: /safe-platform-ui/src/assets/images/common/index.js
 */
import { get } from "lodash";

const images = {
  dialog: {
    bottomLeft: require("./dialog/bottom-left.png"),
    bottomRight: require("./dialog/bottom-right.png"),
    cross: require("./dialog/cross.png"),
    headerLeft: require("./dialog/header-left.png"),
    headerRight: require("./dialog/header-right.png"),
  },
  icon: {
    imgError: require("./icon/img-error.svg"),
  },
  person: {
    avatar: require("./person/avatar.png"),
  },
  WarningBanner: {
    bg: require("./WarningBanner/bg.png"),
    warningIcon: require("./WarningBanner/warning_icon.png"),
  },
  fileIcon: {
    excel: require("./file/elxs.png"),
    word: require("./file/word.png"),
    pdf: require("./file/pdf.png"),
    video: require("./file/video.png"),
    zip: require("./file/zip.png"),
    file: require("./file/file.png"),
  },
};

export default function getImage(path) {
  return get(images, path);
}
